package Day3;

public class Scenic {
    String name;
    int age;
    int sum;
    public void Show(){
        if (age<14 || age>60){
            System.out.println(name+"的年龄为："+age+",门票免费");
        }else {
            System.out.println(name+"的年龄为："+age+",门票价格为："+sum+"元");
        }
    }
}
